package com.fishery.customization.dao.reposity;


import com.fishery.customization.entity.Page;

import java.util.List;

public interface MongoDao<T> {

	public List<T> findAll();

	public long deleteById(String id);

	public long updateById(T entity);

	public long insert(T entity);

	public long insertAll(List<T> list);

	public long deleteAll(List<String> ids);

	public Page<T> findAllWithPage(int current, int size);

	public T findById(String id);

	public long count();

}
